#CROSS_COMPILE是环境变量，是交叉编译工具的前缀，隐式声明编译器
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++

#显示声明编译器
#CC = arm-fsl-linux-gnueabi-gcc
#CXX = arm-fsl-linux-gnueabi-g++

EXEC = $(IMX28_exe_DIR)helloworld
OBJS = helloworld.o
SRC  = helloworld.c

#CC = arm-fsl-linux-gnueabi-gcc 
CFLAGS += 
LDFLAGS += 
all:$(EXEC)

$(EXEC):$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) 

%.o:%.c
	$(CC) $(CFLAGS) -c $< -o $@ 

install:
	cp $(EXEC) $(IMX28_exe_DIR)
    
clean:
	@rm -vf $(EXEC) *.o *~

